package com.zhouyu;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.IOException;

public class Test {

	public static void main(String[] args) throws IOException {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		System.out.println(context.getBean("userService"));
//		System.out.println(context.getBean("zhouyuFactoryBean"));
//		System.out.println(context.getBean("&zhouyuFactoryBean"));
	}
}







